package com.example.qihuibao.dao

import androidx.room.*
import com.example.qihuibao.bean.RspQueryEnterpriseInfoBean

@Dao
interface EnterpriseInfoDao {
    @Query("SELECT * FROM EnterpriseInfo WHERE CorpID IN (:field_CorpID)")
    fun queryInId(field_CorpID: String): RspQueryEnterpriseInfoBean?

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun save(bean: RspQueryEnterpriseInfoBean) : Long
//
////    @Insert
//    @Insert(onConflict = OnConflictStrategy.REPLACE)
//    fun saveList(users: List<UserInfo>) : List<Long>?
//
    @Query("SELECT * FROM EnterpriseInfo")
    fun queryAll(): List<RspQueryEnterpriseInfoBean>?
//
//    @Delete
//    fun delete(userInfo: UserInfo)
//
    @Query("DELETE FROM EnterpriseInfo")
    fun deleteAll()
}